package com.panshi.qa.provider.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panshi.qa.api.vo.ItemQueryVo;
import com.panshi.qa.provider.modules.domain.QaQuesitonRelevance;
import com.panshi.qa.provider.modules.domain.QaQuestion;
import com.panshi.qa.provider.modules.mapper.QaQuestionRelevanceMapper;
import com.panshi.qa.provider.modules.service.QuestionRelevanceService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionRelevanceServiceImpl extends ServiceImpl<QaQuestionRelevanceMapper, QaQuesitonRelevance> implements QuestionRelevanceService {
    //查询问题列表
    @Override
    public List<QaQuesitonRelevance> findQuestionRelevanceList(ItemQueryVo myPage, QaQuestion qaQuestion, String value) {
        return this.baseMapper.findQuestionRelevanceList(myPage,qaQuestion,value);
    }
    //查询问题列表总计录数
    @Override
    public Integer findQuestionRelevanceListTotal(QaQuestion qaQuestionData) {
        return this.baseMapper.findQuestionRelevanceListTotal(qaQuestionData);
    }
    //首页推荐问答
    @Override
    public List<QaQuesitonRelevance> findHomeQaQuestion() {
        return this.baseMapper.findHomeQaQuestion();
    }
}
